# This was cloned from a TextMate bundle for yasnippet.
# --
File.open(${1:"${2:path/to/file}.yaml"}, "w") { |${3:file}| YAML.dump(${4:obj}, ${3:file}) }